package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TimeZoneField implements ExtractField {

    private int beginIndex;
    private int endIndex;
    private boolean timezoneHour;
    private boolean timezoneMinute;

    public TimeZoneField(int beginIndex,
                         int endIndex,
                         boolean timezoneHour,
                         boolean timezoneMinute) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.timezoneHour = timezoneHour;
        this.timezoneMinute = timezoneMinute;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isTimezoneHour() {
        return timezoneHour;
    }

    public boolean isTimezoneMinute() {
        return timezoneMinute;
    }

}
